<template>
  <div class="item">
    <img
      :src="item.coverImgUrl"
    />
    <div class="name">{{item.name}}</div>
    <div class="playCount">{{item.playCount}}</div>
  </div>
</template>

<script>
export default {
  props: ["item"],
};
</script>

<style scoped>
.item {
  width: 220px;
  height: 290px;
  position: relative;
}

.item img {
  width: 100%;
  height: 220px;
}
.name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.playCount {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 50px;
  padding: 4px 10px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
}
</style>